<?php
namespace MyModel;
use MyBase\BaseModel;
class AboutModel extends BaseModel{

	/**
	 * 获取关于我们的数据
	 */
	public function getAboutUsData(){
		$where = array();
		$where['about_id'] = array('EQ',1);
		
		$res = $this->where($where)->find();
		return $res;
	}

	/**
	 * 更新关于我们的数据
	 */
	public function updateAboutUsData($content){
		$where['about_id'] = array('EQ',1);
		$data['about_content'] = $content;
		$res =  $this->where($where)->save($data);
		return $res;
	}
}